<?php

/**
 * @version $Id$
 * @package
 * @author Alexander Anokhin <ava@vaz.ru>
 */

class Requisite extends Zend_Db_Table_Row {
	public function getType()
	{
		return $this->findParentRequisiteTypes();
	}

	public function getValue()
	{
		if($value = $this->findParentReqValues())
				return $value;

		$values = new ReqValues();
		return $values->createRow(array('id_rek'=> $this->id_rek));
	}
}
